package fr.vvins.core.catalog.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

/**
 * VinSku entity
 */
@Entity
@Table(schema="vvins",name="VV_VIN_SKU")
@PrimaryKeyJoinColumn(name="SKU_ID")
public class VinSku extends Sku implements Serializable {

	private static final long serialVersionUID = -3220888197269900847L;
	
	@ManyToOne
	@JoinColumn(name="FORMAT_ID")
	private Format format;
	


	public VinSku() {
	}

	public VinSku(Integer skuId, Format format, Sku sku) {
		super();
		this.format = format;
	}

	public Format getFormat() {
		return format;
	}

	public void setFormat(Format format) {
		this.format = format;
	}
	
}
